<?php
	global $_W,$_GPC;
	$oid = $_GPC['oid'];
	if($_W['role']&&!empty($oid)){
		$class = pdo_fetchall("SELECT id,categoryname FROM ".tablename('mii_ang_class')." WHERE uniacid=:uniacid AND ishide=:ishide ORDER BY category_order DESC",array(':uniacid'=>$_W['uniacid'],':ishide'=>'1'));		
		if(!empty($class)){
			$classArr.='';
			$classNum = count($class,0);			
			foreach ($class as $k => $c) {
				if($k+1==$classNum){
					$classArr.="\"".$c['id'].",".$c['categoryname']."\""; 
				}else{
					$classArr.="\"".$c['id'].",".$c['categoryname']."\",";
				}
			}			
		}		
		$tech = pdo_get('mii_ang_tech',array('id'=>$oid));
		if($tech['opus']){
			$opus = explode(',', $tech['opus']);
		}
		$timetemplate = pdo_fetchall("SELECT tid,template_name FROM".tablename('mii_ang_timetemplate')." WHERE uniacid = :uniacid ORDER BY tid ASC ",array(':uniacid'=>$_W['uniacid']));		
		include $this->template('web/tech/techedit');
	}else{
		message('没有操作权限');
	}


?>